import service from '@/utils/request'

// @Tags GameBanner
// @Summary 创建GameBanner
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameBanner true "创建GameBanner"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameBanner/createGameBanner [post]
export const createGameBanner = (data) => {
  return service({
    url: '/gameBanner/createGameBanner',
    method: 'post',
    data
  })
}

// @Tags GameBanner
// @Summary 删除GameBanner
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameBanner true "删除GameBanner"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameBanner/deleteGameBanner [delete]
export const deleteGameBanner = (data) => {
  return service({
    url: '/gameBanner/deleteGameBanner',
    method: 'delete',
    data
  })
}

// @Tags GameBanner
// @Summary 删除GameBanner
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除GameBanner"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameBanner/deleteGameBanner [delete]
export const deleteGameBannerByIds = (data) => {
  return service({
    url: '/gameBanner/deleteGameBannerByIds',
    method: 'delete',
    data
  })
}

// @Tags GameBanner
// @Summary 更新GameBanner
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameBanner true "更新GameBanner"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /gameBanner/updateGameBanner [put]
export const updateGameBanner = (data) => {
  return service({
    url: '/gameBanner/updateGameBanner',
    method: 'put',
    data
  })
}

// @Tags GameBanner
// @Summary 用id查询GameBanner
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GameBanner true "用id查询GameBanner"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /gameBanner/findGameBanner [get]
export const findGameBanner = (params) => {
  return service({
    url: '/gameBanner/findGameBanner',
    method: 'get',
    params
  })
}

// @Tags GameBanner
// @Summary 分页获取GameBanner列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取GameBanner列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameBanner/getGameBannerList [get]
export const getGameBannerList = (params) => {
  return service({
    url: '/gameBanner/getGameBannerList',
    method: 'get',
    params
  })
}
